home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 428_02 / libsrc / prnputs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-13  |  403 b   |  23 lines

  1. /*
  2. ** prnputs.c
  3. **
  4. ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
  5. ** Redistributed by permission.
  6. */
  7.  
  8. #include "pictor.h"
  9.  
  10. /*
  11. ** Prints a null-terminated string to the standard list device.
  12. ** Returns 0 on success or a non-zero value if an error occurred.
  13. */
  14. int prnputs(char *str)
  15. {
  16.     while(*str) {
  17.         if(prnputc(*str++))
  18.             return(-1);
  19.     }
  20.     return(0);
  21.  
  22. } /* prnputs */
  23.